package cn.cdm.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Slf4j
@Controller
public class SimplePathLoginController {

    /**
     * 支持输入 http://localhost:8080/ 的url地址,来访问登录页面
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "/", method = RequestMethod.GET)
    public String toLogin() throws Exception {
        log.info("访问登录页面SimplePathLoginController");
       return "login";
    }

}
